model model1
/*
 * this model load file from shapefile, modified by OpenJump 
 */
global {
	file shape_file_lignes <- file('../includes/carrefour1/lignes.shp');
	file shape_file_enveloppes <- file('../includes/carrefour1/enveloppes.shp');
	file shape_file_terrains <- file('../includes/carrefour1/terrains.shp');
	file shape_file_departs <- file('../includes/carrefour1/departs.shp');
	file shape_file_arrivees <- file('../includes/carrefour1/arrivees.shp');
	file shape_file_feuxsignaux <- file('../includes/carrefour1/feuxsignaux.shp');
	
	init {
		create ligne from: shape_file_lignes;
		create terrain from: shape_file_terrains;
		create depart from: shape_file_departs;
		create arrivee from: shape_file_arrivees;
		create feusignal from: shape_file_feuxsignaux;
	}
}
entities {
	
	species ligne  {
		rgb color <- rgb('red') ;
		aspect base {
			draw geometry: shape color: color ;
		}
	}
	
	species terrain {
		string type;
		rgb color <- rgb('gray');
		aspect base {
			draw geometry: shape color: color;
		}
	}
	
	species depart {
		rgb color <- rgb('green');
		aspect base {
			draw geometry: shape color: color;
		}
	}
	
	species arrivee {
		rgb color <- rgb('blue');
		aspect base {
			draw geometry: shape color: color;
		}
	}
	
	species feusignal {
		rgb color <- rgb('black');
		aspect base {
			draw geometry: shape color: color;
		}
	}
}

environment bounds: shape_file_enveloppes ;
	
experiment model1 type: gui {
	parameter 'Shapefile for the lignes:' var: shape_file_lignes category: 'GIS' ;
	parameter 'Shapefile for the terrains:' var: shape_file_terrains category: 'GIS' ;
	parameter 'Shapefile for the departs:' var: shape_file_departs category: 'GIS';
	parameter 'Shapefile for the arrivees:' var: shape_file_arrivees category: 'GIS';
	parameter 'Shapefile for the feux:' var: shape_file_feuxsignaux category: 'GIS';
	output {
		display carrefour_display refresh_every: 1 {
			species ligne aspect: base ;
			species terrain aspect: base;
			species depart aspect: base;
			species arrivee aspect: base;
			species feusignal aspect: base;
		}
	}
}